/*
 * Timer.h
 *
 *  Created on: 03/05/2011
 *      Author: DessaVida
 */

#ifndef TIMER_H_
#define TIMER_H_

#include <SDL/SDL.h>
//Millisecond
class Timer {
	unsigned int lastTime;
	unsigned int interval;
public:
	Timer();
	virtual ~Timer();
	Timer(int interval);
	/*
	 * Methods
	 */
	bool HasElapsed();
	void Reset();
	unsigned int GetInterval();
	void SetInterval(unsigned int interval);
};

#endif /* TIMER_H_ */
